<template>
  <div class="course-edit">
    <course-create-or-edit
      is-edit
      :course-id = "courseId">
      <!-- 上方的ID是通过路由传过来的 prop:true-->
    </course-create-or-edit>
  </div>
</template>

<script>
import CourseCreateOrEdit from './components/course-createoredit'
export default {
  name: 'CourseEdit',
  props: {
    courseId: {
      type: [Number, String],
      required: true
    }
  },
  components: {
    CourseCreateOrEdit
  }
}
</script>

<style lang="scss" scoped></style>
